package innerclass;

/**
 * @ClassName Person
 * @Deacription TODO
 * @Author 谢忠辉
 * @Date 2021/3/17 0017 19:28
 **/
public class Person {
    private  int age = 40 ;
    class Son{
        private int age = 20 ;
        public  void printInfo(){
            System.out.println("这是外部类的数据：" + this.age);
            System.out.println("这是内部类的数据：" + Person.this.age);

        }
    }
}
